﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace QuestPrototype
{
    class Item : DrawedToScreen
    {
        private class ItemFromXML
        {
            public Dictionary<string, List<string>> PathsOfAnimations;
            public string PathOfStaticPic;
        }

        private Texture2D _StaticPicOfItem;
        private Vector3 _Position;
        private Dictionary<string, Animation> _Animations = new Dictionary<string,Animation>();

        public Item(string XMLFullPath, Vector3 Position)
        {
            ItemFromXML _ItemFromXML = new ItemFromXML();
            //_ItemFromXML = (ItemFromXML)XMLmanager.Deserialize(_ItemFromXML.GetType(), XMLFullPath);

            _Position = new Vector3(Position.X,Position.Y,Position.Z);
            //_StaticPicOfItem = 
            foreach (KeyValuePair<string, List<string>> item in _ItemFromXML.PathsOfAnimations)
            {
                //_Animations[item.Key] = new Animation(item.Key, item.Value);
            }
        }
    }
}
